﻿package  
{
	
	
	/**
	 * ...
	 * @author spe
	 */
	import flash.display.*;
	import com.ixiyou.speUI.util.MButtonUtils;
	import com.ixiyou.managers.CheckManager
	import com.ixiyou.speUI.mcontrols.*
	import buttonLib.*
	public class testMButtonUtils extends Sprite
	{
		
		public function testMButtonUtils() 
		{
			//2帧的开关按钮
			var btn1:MovieToCheck2 = MButtonUtils.fillCheckBox2Frames(new CheckBox2Frames())
			btn1.x = 10
			btn1.y=10
			addChild(btn1)
			var btn2:MovieToCheck2 = MButtonUtils.fillCheckBox2Frames(new CheckBox2Frames())
			btn2.x = btn1.x
			btn2.y=btn1.x+btn1.height+2
			addChild(btn2)
			var _checker:CheckManager = new CheckManager()
			_checker.iterance=false
			_checker.push(btn1)
			_checker.push(btn2)
			
			//6帧的单复选开关
			var bb:*=new CheckBox6Frames()
			var btn3:MovieToCheck6 = MButtonUtils.fillCheckBox6Frames(bb)
			btn3.x = 150
			btn3.y = 10
			btn3.enabled=true
			addChild(btn3)
			var btn4:MovieToCheck6 = MButtonUtils.fillCheckBox6Frames(new CheckBox6Frames())
			btn4.x = btn3.x
			btn4.y=btn3.y+btn3.height+2
			addChild(btn4)
			var _checker1:CheckManager = new CheckManager()
			_checker1.iterance=false
			_checker1.push(btn3)
			_checker1.push(btn4)
		}
		
	}

}